var imagesFoot_active = ["my_likafu/image/shouye_ju.png", "my_likafu/image/kafuxueyuan_ju.png", "my_likafu/image/tuiguangsucai_ju.png", "my_likafu/image/jifenrenwu_ju.png", "my_likafu/image/gerenzhongxin_ju.png"];
var imagesFoot_notActive = ["my_likafu/image/shouye.png", "my_likafu/image/kafuxueyuan.png", "my_likafu/image/tuiguangsucai.png", "my_likafu/image/jifenrenwu.png", "my_likafu/image/gerenzhongxin.png"];
var image_changeHref = ["my_likafu/main.jsp", "my_likafu/college.jsp", "my_likafu/material.jsp", "my_likafu/integral.jsp", "my_likafu/personal.jsp"];

function changePicture(img) {
    var images = document.getElementsByClassName("img_booter");
    var myiframe = document.getElementById("myiframe");

    for (var i = 0; i < images.length; i++) {
        if (images[i] === img) {
            images[i].src = imagesFoot_active[i];
            myiframe.src = image_changeHref[i];
        } else {
            images[i].src = imagesFoot_notActive[i];
        }
    }
}